"""MovieRecommend URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))


    选择DJ标识的项目进行启动程序

    前台： http://127.0.0.1:8000/login/  测试账号 123  123456

    后台： http://127.0.0.1:8000/admin/  超级管理员账号密码 admin  admin123








"""
from django.contrib import admin
from django.conf.urls import url

from api.data_get import pie, bar, line, bars, radar, bar3, ciyun
from api.page_href import href_data, data_page
from api.route import href_index, href_register, href_login, href_renmen, href_new, href_jingdian, href_top, \
    href_comment, href_update, href_all, href_recommend
from api import login, register, renmen_data, new_data, jingdian_data, top_data, comment_data, all_data, look_get, \
    recommend_data
from api.requests_message import renmen_message,new_message,jingdian_message,top_message,comment_messgae,comment_messgae

urlpatterns = [
    url('admin/', admin.site.urls),
    url(r'data', data_page.indexs),   # 数据大屏路径
    url(r'api/ciyun', ciyun.CiYunData.as_view()),
    url(r'api/pie', pie.PieData.as_view()),
    url(r'api/bar', bar.BarData.as_view()),
    url(r'api/line', line.LineData.as_view()),
    url(r'api/b2ars', bars.BarsData.as_view()),
    url(r'api/radar', radar.RadarData.as_view()),
    url(r'api/b3ars', bar3.Bar3Data.as_view()),


    # 首页
    url('index/$', href_index.Index.as_view()),
    # 登录跳转
    url('login/$', href_login.Login.as_view()),
    # 注册跳转
    url('register/$', href_register.Register.as_view()),
    # 注册接口
    url('register/create/$', register.Register.as_view()),
    # 登录接口
    url('login/auth/$', login.Login.as_view()),

    # 热门网页跳转
    url('renmen/href/$', href_renmen.Remen.as_view()),
    # 热门爬取接口
    url('renmen/get/$', renmen_message.ReMenRequests.as_view()),
    # 热门数据显示接口
    url('renmen/show/$', renmen_data.Remen.as_view()),

    # 最新网页跳转
    url('new/href/$', href_new.New.as_view()),
    # 最新爬取接口
    url('new/get/$', new_message.NewRequests.as_view()),
    # 最新数据显示接口
    url('new/show/$', new_data.New.as_view()),

    # 经典网页跳转
    url('jingdian/href/$', href_jingdian.JingDian.as_view()),
    # 经典爬取接口
    url('jingdian/get/$', jingdian_message.JingDianRequests.as_view()),
    # 经典数据显示接口
    url('jingdian/show/$', jingdian_data.Jingdian.as_view()),

    # 豆瓣高分网页跳转
    url('top/href/$', href_top.Top.as_view()),
    # 豆瓣高分爬取接口
    url('top/get/$', top_message.TopRequests.as_view()),
    # 豆瓣高分数据显示接口
    url('top/show/$', top_data.DoubanTop.as_view()),


    # 评论网页跳转
    url('comment/href/$', href_comment.Comment.as_view()),
    # 评论爬取接口
    url('comment/get/$', comment_messgae.CommentRequests.as_view()),
    # 评论数据显示接口
    url('comment/show/$', comment_data.Comment.as_view()),

    # 全部电影网页跳转
    url('all/href/$', href_all.All.as_view()),
    # 全部电影显示接口
    url('all/show/$', all_data.AllMovie.as_view()),

    #  记录浏览
    url("look/get/", look_get.LookGet.as_view()),

    #  推荐跳转
    url("recommend/href$", href_recommend.recommend.as_view()),
    #  推荐显示
    url("recommend/show/", recommend_data.Recommend.as_view()),

    # 更新数据网页跳转
    url('updtate/href/$', href_update.Update.as_view()),
]
